package com.xiangban.yanglaodajie_platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/2/2 14:39
 */
@Data
@ApiModel("用户表")
@TableName("user")
public class User {

    @ApiModelProperty(value = "用户ID")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String image;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "1:男,2:女,3:未知")
    private String sex;

    @ApiModelProperty(value = "身份证号码")
    private String cardNo;

    @ApiModelProperty(value = "兴趣爱好")
    private String hobby;

    @ApiModelProperty(value = "家政服务")
    private String homemakingService;

    @ApiModelProperty(value = "饭点")
    private BigDecimal accumulatePoints;

    @ApiModelProperty(value = "打卡签到积分")
    private BigDecimal  signIntegral;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

//    @ApiModelProperty(value = "金额")
//    private BigDecimal price;

    @ApiModelProperty(value = "状态(1:启用,0:禁用,-1:删除)")
    private Integer status;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "类型（1：普通用户，2：志愿者，3：商家管理员，4：志愿者组长）")
    private Integer type;

    @ApiModelProperty(value = "公司id")
    private Integer copId;
}
